<?php


namespace app\common\model;


use think\Model;

class HelpModel extends Model
{
    // 任务类型
    const TYPE_CATE = [
        1 => '主播相关',
        2 => '用户相关',
        3 => 'OW相关',
    ];

    public static function getTypeTextAttr($value, $data) {
        return isset(self::TYPE_CATE[$data['type']]) ? self::TYPE_CATE[$data['type']] : '';
    }

}